<template>
  <div>
      <h3>
        账号是: {{ $route.params.user }}
      </h3>
      <h3>
        密码是: {{ $route.params.pwd }}
      </h3>
  </div>
</template>

<script>
export default {
  created() {
    // console.log(this.$route)
  },
  // 组件拦截
  beforeRouteEnter(to, from, next) {
    console.log('进入')
    next()
  },
  beforeRouteLeave(to, from, next) {
     console.log('离开')
     next()
  },
  beforeRouteUpdate(to, from, next) {
    console.log('地址更新了')
    next()
  }
}
</script>

<style>

</style>